package com.example.mywanandroid.ui.activity.login;




import androidx.lifecycle.ViewModelProvider;
import androidx.lifecycle.ViewModelProviders;

import com.example.mywanandroid.R;
import com.example.mywanandroid.base.BaseFragment;
import com.example.mywanandroid.databinding.LoginFragmentBinding;

public class FragmentLogin extends BaseFragment<LoginFragmentBinding, LoginViewModel> {
    @Override
    protected int getLayoutResId() {
        return R.layout.login_fragment;
    }

    @Override
    protected void initViewModel() {
        mViewModel =  new ViewModelProvider(getActivity()).get(LoginViewModel.class);

    }

    @Override
    protected void bindViewModel() {
        mDataBinding.setViewModel(mViewModel);
        mDataBinding.setActivity((LoginActivity) getActivity());
    }

    @Override
    protected void init() {

    }
}
